package com.oa.modules.approvalsec1.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.oa.modules.approvalsec1.entity.ApprovalTotalEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 审批数据统计
 * 
 * @author jimboo
 * @email jimboo7339@163.com
 */
@Mapper
public interface ApprovalTotalDao extends BaseMapper<ApprovalTotalEntity> {
    /**
     * 查询总条数
     *
     * @author jimboo
     * @email jimboo7339@163.com
     * @Description 查询分页数据
     */
    long findPage(@Param("params") Map<String, Object> params);

    /**
     * 查询分页数据
     *
     * @author jimboo
     * @email jimboo7339@163.com
     * @Description 查询分页数据
     */
    List<ApprovalTotalEntity> findRecords(IPage<ApprovalTotalEntity> page, @Param("params") Map<String, Object> params);

    void batchSave(List<ApprovalTotalEntity> list);

    void batchUpdate(List<ApprovalTotalEntity> list);

    ApprovalTotalEntity select(ApprovalTotalEntity approvalTotalEntity);

    void singleUpdate(ApprovalTotalEntity approvalTotalEntity);

    void singleSave(ApprovalTotalEntity approvalTotalEntity);
}
